liwe.form.instance.prototype.tags = function ( vars )
{
	vars [ 'os3_class_value' ] = '';

	this._start_field ( vars );

	var value = vars.get ( "value", "" );

	var w_tags = new WWL.tags ( this.name + ":tags@" + vars [ 'name' ], vars );

	w_tags.module_name = vars.get ( "module_name" );

	this.html += w_tags.to_string ();

	this._widgets [ vars [ 'name' ] ] = w_tags;

	this.hidden ( vars [ 'name' ], value );

	this._newline ( vars );

	var name = vars [ 'name' ], _obj = this;
	w_tags.events [ 'update' ] = function ( v ) 
	{ 
		var e = _obj.get_element ( name );
		e.value = v;

		if ( vars [ 'event-update' ] ) vars [ 'event-update' ] ( w_tags, v );
	};

	w_tags.events [ 'list-tags' ] = function ( cback, reload )
	{
		tags.list ( w_tags.module_name, cback, reload );

		if ( vars [ 'event-list-tags' ] ) vars [ 'event-list-tags' ] ( w_tags, cback, reload );
	};

	w_tags.render = function ()
	{
		this.set_value ( value );
	};
};
